<%--
  Created by IntelliJ IDEA.
  User: Damon
  Date: 2021/4/24
  Time: 18:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>管理员查询</title>
</head>
<body>
</body>
<%String query=request.getParameter("query");%>
<%if(query.equals("学号")){%>
<form action="queryByNumServlet" method="post">
        <h3>请输入学号</h3>
        学号：<input type="text" name="uNum"/><br/>
    <input type="submit" value="查询">
</form><%}%>
<%if(query.equals("名字")){%>
<form action="queryByName" method="post">
        <h3>请输入名字</h3>
        名字：<input type="text" name="uName"/><br/>
    <input type="submit" value="查询">
</form><%}%>
<%if(query.equals("年级")){%>
<form action="queryByGradeServlet" method="post">
    <h3>请输入年级</h3>
    年级：<input type="text" name="uGrade"/><br/>
    <input type="submit" value="查询">
</form><%}%>
<%if(query.equals("所有")){
    request.getRequestDispatcher("queryAllServlet").forward(request,response);
}%>
  </body>
</html>
